#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
int main()
{
	int n= 0, cost = 0;
	scanf("%d %d", &n, &cost);

	int flag = 1;
	int m = 0, w = 0, k = 0;
	for (m = 0; m <= n; m++)
		for (w = 0; w <= n; w++)
			for (k = 0; k <= n; k++)
				if (3 * m + 2 * w + k == cost && m + w + k == n)
				{
					printf("%d %d %d\n", m, w, k);
					flag = 0;
				}

	if (flag)
		printf("No Answer");
	return 0;
}